Add font-locking for typed parameters in python-ts-mode (bug#70665)
authorNoah Peart <noah.v.peart@gmail.com>
Tue, 30 Apr 2024 09:55:18 +0000 (02:55 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 2 May 2024 04:26:29 +0000 (21:26 -0700)
commit0f92d433d2b806eb58a9a4c0197344b08ea5ae65
treeac37a8fea44d120caf1cebb604b08ef099aa189d
parentb84fa71f8985284560bacda7d407e3559583844f
Add font-locking for typed parameters in python-ts-mode (bug#70665)

* lisp/progmodes/python.el (python--treesit-settings): Add
tree-sitter font-locking rule for typed parameters.
* test/lisp/progmodes/python-tests.el
(python-ts-mode-types-face-1): Test for
font-lock-variable-name-face in typed parameter.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el